package com.jfunit.java.bean;

import java.util.Map;

import org.apache.commons.collections4.map.HashedMap;

/**
 * 返回视图对像
 * @author Administrator
 *
 */
public class View {

    //视图路径
    private String path;
    
    //模型数据
    private Map<String, Object> model;

    public View(String path) {
        this.path = path;
        this.model = new HashedMap<String, Object>();
    }
    
    public View addModel(String key,Object value) {
        model.put(key, value);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
    
    
    
}
